<h1>住所から検索　&gt;&gt;　市区町村を選択してください。</h1>
<p class="lead">全国の賃貸マンションを検索。全国のお部屋探しなら賃貸情報アパマンショップ！</p>

<form name="mainForm" method="get" action="{$url.list}">
	<input type="hidden" name="SrhKbn" value="{$request.SrhKbn}" />
	<input type="hidden" name="PlaceKbn" value="{$request.PlaceKbn}" />
	<input type="hidden" name="SrhType" value="{$request.SrhType}" />
	<input type="hidden" name="first_check" value="{$request.first_check}" />
	
{if $request.isSelectedPref == true}
	{foreach from=$request.PrefCd item=PrefCd name=loop}
	<input type="hidden" name="PrefCd[{$smarty.foreach.loop.index}]" value="{$PrefCd}" />
	{/foreach}
{else}
	<input type="hidden" name="PrefCd[]" value="" />
{/if}

	<!-- shopNewIndex -->
	<div id="shopNewIndex">
		<!-- selectCategoryAnchor -->
		<div id="selectCategoryAnchor">
			<!-- innerBlock -->
			<div class="innerBlock01">
				<div class="innerBlock02">
					<ul>
{* 都道府県毎にループ *}
{foreach from=$dispList key=prefCd item=pref}
						<li><a href="#area{$prefCd}">{$pref.PrefName}</a></li>
{/foreach}
					</ul>
				</div>
			</div>
			<!-- /innerBlock -->
		</div>
		<!-- /selectCategoryAnchor -->

{* 都道府県毎にループ *}
{foreach from=$dispList key=prefCd item=pref}
		<!-- selectDetailBlock02 -->
		<div class="selectDetailBlock02" id="area{$prefCd}">
			<p class="title">{$pref.PrefName}<label class="allSelect"><input type="checkbox" name="allselect" id="allselect" onclick="javascript:AllChecker(document.mainForm, '0', this.checked, '{$prefCd}');" />すべて選択</label></p>
			<!-- innerBlock01 -->
			<div class="innerBlock01">
				<!-- innerBlock02 -->
				<div class="innerBlock02">

	{* 市区町村毎にループ *}
    {foreach from=$pref.CityList item=city name=cityLoop}
	    {if $smarty.foreach.cityLoop.iteration % 3 == 1}
	    	{if $smarty.foreach.cityLoop.iteration + 2 >= $smarty.foreach.cityLoop.total}
	    		<ul class="last">
		    {else}
	    		<ul>
		    {/if}
	    {/if}

	    {if $city.TENPO_COUNT == 0}
	    	{assign var="disabled" value=" disabled"}
	    {else}
	    	{assign var="disabled" value=""}
	    {/if}
						<li>
							<input type='checkbox' id="{$city.TODOUFUKEN_CD}" name='CityCd[]' value='{$city.TODOUFUKEN_CD}{$city.SHIKUCHOUSON_CD}'{$disabled} {$city.checked}>
							<a href="javascript:clickCity(document.mainForm, '{$city.TODOUFUKEN_CD}{$city.SHIKUCHOUSON_CD}')">{$city.SHIKUCHOUSON_NAME}({$city.TENPO_COUNT}店舗)</a>
						</li>
	    
		{if $smarty.foreach.cityLoop.iteration % 3 == 0 || $smarty.foreach.cityLoop.last}
					</ul>
		{/if}
	{/foreach}
				</div>
				<!-- /innerBlock02 -->
			</div>
			<!-- /innerBlock01 -->
		</div>
		<!-- /selectDetailBlock02 -->
{/foreach}

		<!-- searchToResult02 -->
		<div id="searchToResult02">
			<!-- innerBlock01 -->
			<div class="innerBlock01">
				<div class="innerBlock02">
					<div class="innerBlock03">
						<p class="btn">
							<a href="javascript:SubmitCity(document.mainForm);">
								<img class="rollImg" id="imageField" src="{$apm.baseurl}images/search/common/btn_search.gif" alt="検索" />
							</a>
						</p>
					</div>
				</div>
			</div>
			<!-- /innerBlock01 -->
		</div>
		<!-- /searchToResult02 -->
		
		{* 2011/01/06 おまかせ物件探しバナー追加 *}
		<div>
			<a href="{$apm.baseurl}info/request" >
				<img src="/images/common/banner_request.gif" alt="かんたんリクエスト" />
			</a>
		</div>
		{* おまかせ物件探しバナー追加 END *}
		
	</div>
	<!-- /shopNewIndex -->
</form>